<template>
  <rich-text :nodes="contentData"></rich-text>
</template>

<script>
import graceRichText from '@/common/richText.js';

export default {
  name: 'c-rich-text',
  props: {
    content: {
      type: String,
      default: '',
    },
  },
  computed: {
    contentData: function () {
      return graceRichText.format(this.content);
    },
  },
};
</script>
